package com.dfqy.dao;

import com.dfqy.pojo.Admin;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminDAO {

     int add(Admin admin);

     int update(Admin admin);

    List<Admin> paging(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("uname") String uname);

    int findTotal(@Param("uname") String uname);

    Admin selectAdminById(long id);

    int delete(@Param("id") long... id);

    Admin selectAdmin(@Param("uname") String uname);
}
